package com.vote.common.service.impl;

import com.vote.common.entity.VoteVisit;
import com.vote.common.mapper.VoteVisitMapper;
import com.vote.common.service.VoteVisitService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 投票系统访问量表 服务实现类
 * </p>
 *
 * @author gyg
 * @since 2021-05-21
 */
@Service
public class VoteVisitServiceImpl extends ServiceImpl<VoteVisitMapper, VoteVisit> implements VoteVisitService {

    @Override
    public List<VoteVisit> listRecent24HVisit() {
        return baseMapper.listRecent24HVisit();
    }

    @Override
    public List<VoteVisit> listRecent30DaysVisit() {
        return baseMapper.listRecent30DaysVisit();
    }
}
